Package-level declarations

Types

Link copied to clipboard

The relationship between two calendar values.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class TimeUnit

Properties

Link copied to clipboard
val <Unit : DayOrSmaller, TimeUnit> TimePeriod<Unit>.dayOfMonth: Int
Link copied to clipboard
val <Unit : DayOrSmaller, TimeUnit> TimePeriod<Unit>.dayOfWeek: DayOfWeek
Link copied to clipboard
val <Unit : DayOrSmaller, TimeUnit> TimePeriod<Unit>.dayOfYear: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val <Unit : HourOrSmaller, TimeUnit> TimePeriod<Unit>.hour: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val <Unit : MinuteOrSmaller, TimeUnit> TimePeriod<Unit>.minute: Int
Link copied to clipboard
Link copied to clipboard
val <Unit : MonthOrSmaller, TimeUnit> TimePeriod<Unit>.month: Month
Link copied to clipboard
Link copied to clipboard
val <Unit : NanosecondOrSmaller, TimeUnit> TimePeriod<Unit>.nanosecond: Int
Link copied to clipboard

Create a new TimePeriod by moving forward one day.

Link copied to clipboard
val <Unit : HourOrSmaller, TimeUnit> TimePeriod<Unit>.nextHour: TimePeriod<Unit>

Create a new TimePeriod by moving forward one hour.

Link copied to clipboard
val <Unit : MinuteOrSmaller, TimeUnit> TimePeriod<Unit>.nextMinute: TimePeriod<Unit>

Create a new TimePeriod by moving forward one minute.

Link copied to clipboard
val <Unit : MonthOrSmaller, TimeUnit> TimePeriod<Unit>.nextMonth: TimePeriod<Unit>

Create a new TimePeriod by moving forward one month.

Link copied to clipboard
val <Unit : NanosecondOrSmaller, TimeUnit> TimePeriod<Unit>.nextNanosecond: TimePeriod<Unit>

Create a new TimePeriod by moving forward one nanosecond.

Link copied to clipboard
val <Unit : SecondOrSmaller, TimeUnit> TimePeriod<Unit>.nextSecond: TimePeriod<Unit>

Create a new TimePeriod by moving forward one second.

Link copied to clipboard
val <Unit : YearOrSmaller, TimeUnit> TimePeriod<Unit>.nextYear: TimePeriod<Unit>

Create a new TimePeriod by moving forward one year.

Link copied to clipboard

Create a new TimePeriod by moving backward one day.

Link copied to clipboard

Create a new TimePeriod by moving backward one hour.

Link copied to clipboard

Create a new TimePeriod by moving backward one minute.

Link copied to clipboard

Create a new TimePeriod by moving backward one month.

Link copied to clipboard

Create a new TimePeriod by moving backward one nanosecond.

Link copied to clipboard

Create a new TimePeriod by moving backward one second.

Link copied to clipboard

Create a new TimePeriod by moving backward one year.

Link copied to clipboard
val <Unit : SecondOrSmaller, TimeUnit> TimePeriod<Unit>.second: Int
Link copied to clipboard
Link copied to clipboard
val <Unit : YearOrSmaller, TimeUnit> TimePeriod<Unit>.year: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun <Unit : DayOrSmaller, TimeUnit> TimePeriod<Unit>.addingDays(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving forward some number of days.

Link copied to clipboard
fun <Unit : HourOrSmaller, TimeUnit> TimePeriod<Unit>.addingHours(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving forward some number of hours.

Link copied to clipboard
fun <Unit : MinuteOrSmaller, TimeUnit> TimePeriod<Unit>.addingMinutes(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving forward some number of minutes.

Link copied to clipboard
fun <Unit : MonthOrSmaller, TimeUnit> TimePeriod<Unit>.addingMonths(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving forward some number of months.

Link copied to clipboard
fun <Unit : NanosecondOrSmaller, TimeUnit> TimePeriod<Unit>.addingNanoseconds(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving forward some number of nanoseconds.

Link copied to clipboard
fun <Unit : SecondOrSmaller, TimeUnit> TimePeriod<Unit>.addingSeconds(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving forward some number of seconds.

Link copied to clipboard
fun <Unit : YearOrSmaller, TimeUnit> TimePeriod<Unit>.addingYears(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving forward some number of years.

Link copied to clipboard
fun TimePeriod<*>.after(other: TimePeriod<*>): Boolean
Link copied to clipboard
fun TimePeriod<*>.before(other: TimePeriod<*>): Boolean
Link copied to clipboard
Link copied to clipboard

Construct a new TimePeriod by converting the receiver to a new TimeZone.

Link copied to clipboard
fun LocalDate.dayPeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Day>
fun LocalDateTime.dayPeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Day>
Link copied to clipboard
Link copied to clipboard
fun TimePeriod<*>.during(other: TimePeriod<*>): Boolean
Link copied to clipboard
fun LocalDateTime.hourPeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Hour>
Link copied to clipboard
@JvmName(name = "minusDay")
operator fun <Unit : DayOrBigger, TimeUnit> TimePeriod<TimeUnit.Day>.minus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Day>
@JvmName(name = "minusHour")
operator fun <Unit : HourOrBigger, TimeUnit> TimePeriod<TimeUnit.Hour>.minus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Hour>
@JvmName(name = "minusMinute")
operator fun <Unit : MinuteOrBigger, TimeUnit> TimePeriod<TimeUnit.Minute>.minus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Minute>
@JvmName(name = "minusMonth")
operator fun <Unit : MonthOrBigger, TimeUnit> TimePeriod<TimeUnit.Month>.minus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Month>
@JvmName(name = "minusNanosecond")
operator fun <Unit : NanosecondOrBigger, TimeUnit> TimePeriod<TimeUnit.Nanosecond>.minus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Nanosecond>
@JvmName(name = "minusSecond")
operator fun <Unit : SecondOrBigger, TimeUnit> TimePeriod<TimeUnit.Second>.minus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Second>
@JvmName(name = "minusYear")
operator fun TimePeriod<TimeUnit.Year>.minus(difference: TimeDifference<TimeUnit.Year>): TimePeriod<TimeUnit.Year>

Subtracts a TimeDifference from this TimePeriod.

Link copied to clipboard
fun LocalDateTime.minutePeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Minute>
Link copied to clipboard
fun LocalDate.monthPeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Month>
fun LocalDateTime.monthPeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Month>
Link copied to clipboard
fun Clock.nextDay(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Day>
Link copied to clipboard
fun Clock.nextHour(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Hour>
Link copied to clipboard
fun Clock.nextMinute(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Minute>
Link copied to clipboard
fun Clock.nextMonth(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Month>
Link copied to clipboard
fun Clock.nextSecond(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Second>
Link copied to clipboard
fun Clock.nextYear(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Year>
Link copied to clipboard

fun Clock.offset(delta: Duration): Clock

Offset a Clock.

Link copied to clipboard
Link copied to clipboard
@JvmName(name = "plusDayOrBigger")
operator fun <Unit : DayOrBigger, TimeUnit> TimePeriod<TimeUnit.Day>.plus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Day>
@JvmName(name = "plusHourOrBigger")
operator fun <Unit : HourOrBigger, TimeUnit> TimePeriod<TimeUnit.Hour>.plus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Hour>
@JvmName(name = "plusMinuteOrBigger")
operator fun <Unit : MinuteOrBigger, TimeUnit> TimePeriod<TimeUnit.Minute>.plus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Minute>
@JvmName(name = "plusMonthOrBigger")
operator fun <Unit : MonthOrBigger, TimeUnit> TimePeriod<TimeUnit.Month>.plus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Month>
@JvmName(name = "plusNanosecondOrBigger")
operator fun <Unit : NanosecondOrBigger, TimeUnit> TimePeriod<TimeUnit.Nanosecond>.plus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Nanosecond>
@JvmName(name = "plusSecondOrBigger")
operator fun <Unit : SecondOrBigger, TimeUnit> TimePeriod<TimeUnit.Second>.plus(difference: TimeDifference<Unit>): TimePeriod<TimeUnit.Second>
@JvmName(name = "plusYear")
operator fun TimePeriod<TimeUnit.Year>.plus(difference: TimeDifference<TimeUnit.Year>): TimePeriod<TimeUnit.Year>

Adds a TimeDifference to this TimePeriod.

Link copied to clipboard
fun Clock.previousDay(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Day>
Link copied to clipboard
fun Clock.previousHour(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Hour>
Link copied to clipboard
fun Clock.previousMinute(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Minute>
Link copied to clipboard
fun Clock.previousMonth(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Month>
Link copied to clipboard
fun Clock.previousSecond(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Second>
Link copied to clipboard
fun Clock.previousYear(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Year>
Link copied to clipboard
Link copied to clipboard
fun Clock.scaled(factor: Double): Clock

Scale a Clock.

Link copied to clipboard
fun LocalDateTime.secondPeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Second>
Link copied to clipboard
fun <Unit : DayOrSmaller, TimeUnit> TimePeriod<Unit>.subtractingDays(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving backward some number of days.

Link copied to clipboard
fun <Unit : HourOrSmaller, TimeUnit> TimePeriod<Unit>.subtractingHours(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving backward some number of hours.

Link copied to clipboard
fun <Unit : MinuteOrSmaller, TimeUnit> TimePeriod<Unit>.subtractingMinutes(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving backward some number of minutes.

Link copied to clipboard
fun <Unit : MonthOrSmaller, TimeUnit> TimePeriod<Unit>.subtractingMonths(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving backward some number of months.

Link copied to clipboard
fun <Unit : NanosecondOrSmaller, TimeUnit> TimePeriod<Unit>.subtractingNanoseconds(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving backward some number of nanoseconds.

Link copied to clipboard
fun <Unit : SecondOrSmaller, TimeUnit> TimePeriod<Unit>.subtractingSeconds(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving backward some number of seconds.

Link copied to clipboard
fun <Unit : YearOrSmaller, TimeUnit> TimePeriod<Unit>.subtractingYears(count: Int): TimePeriod<Unit>

Create a new TimePeriod by moving backward some number of years.

Link copied to clipboard
fun Clock.thisDay(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Day>

Retrieve the current day of the Clock and TimeZone.

Link copied to clipboard
fun Clock.thisHour(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Hour>

Retrieve the current hour of the Clock and TimeZone.

Link copied to clipboard
fun Clock.thisInstant(): Instant
Link copied to clipboard
fun Clock.thisMinute(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Minute>

Retrieve the current minute of the Clock and TimeZone.

Link copied to clipboard
fun Clock.thisMonth(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Month>

Retrieve the current month of the Clock and TimeZone.

Link copied to clipboard
fun Clock.thisNanosecond(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Nanosecond>

Retrieve the current nanosecond of the Clock and TimeZone.

Link copied to clipboard
fun Clock.thisSecond(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Second>

Retrieve the current second of the Clock and TimeZone.

Link copied to clipboard
fun Clock.thisYear(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Year>

Retrieve the current year of the Clock and TimeZone.

Link copied to clipboard
fun Clock.today(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Day>

Retrieve the current day of the Clock and TimeZone.

Link copied to clipboard
fun <Unit : TimeUnit, DayOrSmaller> TimePeriod<Unit>.toLocalDate(): LocalDate

Constructs a kotlinx.datetime.LocalDate from a TimePeriod with DayOrSmaller precision.

Link copied to clipboard
fun <Unit : TimeUnit, HourOrSmaller> TimePeriod<Unit>.toLocalDateTime(): LocalDateTime

Constructs a kotlinx.datetime.LocalDateTime from a TimePeriod with HourOrSmaller precision.

Link copied to clipboard
fun Clock.tomorrow(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Day>
Link copied to clipboard
fun TimePeriod<*>.toNSDateComponents(): <Error class: unknown class>
Link copied to clipboard
fun LocalDate.yearPeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Year>
fun LocalDateTime.yearPeriod(timeZone: TimeZone): TimePeriod<TimeUnit.Year>
Link copied to clipboard
fun Clock.yesterday(timeZone: TimeZone = TimeZone.currentSystemDefault()): TimePeriod<TimeUnit.Day>